package com.gitee.center.test.flow.form;

import com.gitee.center.runtime.IIdentityResolver;
import com.gitee.center.runtime.annotation.Partner;
import org.jetbrains.annotations.NotNull;

@Partner(code = FlowKaPartner.CODE,name = "关键客户")
public class FlowKaPartner implements IIdentityResolver<ProcessInstance> {
    public static final String CODE = "KAS";

    @Override
    public boolean match(@NotNull ProcessInstance model) {
        if (model.getSource() == null) {


            return false;
        }
        return model.getSource().equalsIgnoreCase(CODE);
    }
}


